import dva from 'dva';
import './index.css';
import moment from 'moment';
import 'moment/locale/zh-cn';
// import reqwest from 'reqwest'
// import createLoading from 'dva-loading';
moment.locale('zh-cn');
// 1. Initialize
const app = dva();

window.host = 'https://api.salesgj.com';

// 2. Plugins
// app.use({});
// app.use(reqwest)
// 3. Model
app.model(require('./models/Login/regist.js'))
app.model(require('./models/orders'))

// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
